home *** CD-ROM | disk | FTP | other *** search
- Path: news.dfn.de!si-nic!usenet
- From: Markus Becker <becker@zess.uni-siegen.de>
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.tools.owl
- Subject: Re: Context Devices & co
- Date: 9 Jan 1996 12:59:57 GMT
- Organization: Computer Center, University of Siegen, Germany
- Message-ID: <4ctosd$6tp@si-nic.hrz.uni-siegen.de>
- References: <4ctms2$1ai@driene.student.utwente.nl>
- NNTP-Posting-Host: becker.zess.uni-siegen.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- v.n.jeronimus@student.utwente.nl (V.N.Jeronimus) wrote:
-
- > A part of my window needs to be repainted, because I used ScrollDC to scroll
- >the window to the left. All I want now is to build the new to-be-repainted
- >rectangle in memory first and than BITBLT it to my Client Area, because
- >rebuilding it on screen will make my Client Area blink while scrolling....
-
-
- >What I tried is something like this (All with OWL 2.5 & Borland C++ 4.52)
-
- >1. I created a clientDC (TClientDC) of my client window;
- >2. I created a compatible memoryDC (TMemoryDC(clientDC)) of clientDC;
-
- Then create a compatible bitmap for the MemoryDC.
- and you have to select the Bitmap into the MemoryDC, as standard
- windows selects a 1x1 monochrome bitmap into it.
-
- >3. I build my new part that needs to be painted;
- >4. I call clientDC->BitBlt(rect,*memoryDC,TPoint(x,y),SRCCOPY).
-
- >Vincent Jeronimus.
-
- --
- Markus Becker http://www.zess.uni-siegen.de/private/becker/
- Zentrum fuer Sensorsysteme (ZESS)
- http://www.zess.uni-siegen.de/private/becker/win95
-
-
-